package work;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class ShowClass {
    public static void main(String[] args) throws Exception {

        Runtime runtime = Runtime.getRuntime();
        //执行指令

        Process currentProcess = runtime.exec("cmd /c javap -c C:\\Users\\dinglei\\Desktop\\临时文件\\handle\\target\\classes\\work\\T.class");

        BufferedReader br = new BufferedReader(new InputStreamReader(currentProcess.getInputStream(), "gbk"));
        String line;

        //读取输出的结果
        while ((line = br.readLine()) != null) {
            System.out.println(line);
        }
    }
}
